package cn.ynu.cmrs.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * School collection<br>
 * 
 * <br>
 * <table>
 * <tr><td><b>field</b></td><td><b>description</b></td><td><b>
 * <tr><td>head</td><td>school information head, {@link CollegeInfoHead}</td><td>
 * <tr><td>items</td><td>school information items, {@link List} contains {@link CollegeInfoItem}</td><td>
 * <tr><td>status</td><td>Result state of get json string from the server</td><td>
 * </table>
 * 
 * @author starsfury
 *
 */
public class College implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8191426115702169003L;
	private CollegeInfoHead head = new CollegeInfoHead();
	private List<CollegeInfoItem> items = new ArrayList<CollegeInfoItem>();
	private String[] status = {};
	
	public College() {
		super();
		// TODO Auto-generated constructor stub
	}

	public College(CollegeInfoHead head, List<CollegeInfoItem> items,
			String[] status) {
		super();
		this.head = head;
		this.items = items;
		this.status = status;
	}

	public CollegeInfoHead getHead() {
		return head;
	}

	public void setHead(CollegeInfoHead head) {
		this.head = head;
	}

	public List<CollegeInfoItem> getItems() {
		return items;
	}

	public void setItems(List<CollegeInfoItem> items) {
		this.items = items;
	}

	public String[] getStatus() {
		return status;
	}

	public void setStatus(String[] status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "College [head=" + head + ", items=" + items + ", status="
				+ Arrays.toString(status) + "]";
	}
	
}
